﻿@model Home.WebUI.Areas.Admin.Validation.UserInfoCreate
@{
    ViewBag.Title = "";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section head{
   <script src="~/Scripts/jquery-1.8.2.min.js"></script>
   <script type="text/javascript">
        $(function () {
            $("#UserName").attr({ "data-val-remote": "用户名已存在", "data-val-remote-additionalfields": "*.UserName", "data-val-remote-url": "@Url.Action("UserNameExists")" });
        });
    </script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
}
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	@{Html.RenderPartial("_Manager");}
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>新建@(ViewBag.ColumnTitle)</h2></div>
                <div class="sect">
                    @using (Html.BeginForm())
                    {
                   @* @Html.ValidationSummary(true)*@
						@*<div class="wholetip clear"><h3>1、登录信息</h3></div>*@
                        <div class="field">
                            <label>用户名</label>
                           @Html.TextBoxFor(model => model.UserName, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.UserName)
                        </div>
                        <div class="field">
                            <label>姓名</label>
                           @Html.TextBoxFor(model => model.Name, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Name)
                        </div>
                        <div class="field">
                            <label>电话</label>
                           @Html.TextBoxFor(model => model.Phone, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Phone)
                        </div>
                        <div class="field">
                            <label>密码</label>
                           @Html.PasswordFor(model => model.PassWord, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.PassWord)
                        </div>
                        <div class="field">
                            <label>确认密码</label>
                           @Html.PasswordFor(model => model.VPassWord, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.VPassWord)
                        </div>
                        <div class="field">
                            <label>Email</label>
                           @Html.TextBoxFor(model => model.Email, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Email)
                        </div>
                        <div class="field">
                            <label>公司名称</label>
                           @Html.TextBoxFor(model => model.CompanyName, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.CompanyName)
                        </div>
                        <div class="field">
                            <label>职位</label>
                           @Html.TextBoxFor(model => model.Position, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Position)
                        </div>
                        <div class="field">
                            <label>地址</label>
                           @Html.TextBoxFor(model => model.Address, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Address)
                        </div>
                        <div class="field">
                            <label>业务</label>
                           @Html.TextBoxFor(model => model.YeWu, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.YeWu)
                        </div>
                        <div class="field">
                            <label>会籍</label>
                           @Html.TextBoxFor(model => model.HuiJi, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.HuiJi)
                        </div>
                        <div class="field">
                            <label>状态</label>
                           @Html.RadioButtonFor(model => model.State,1)正常
                           @Html.RadioButtonFor(model => model.State,0)禁用
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.State)
                        </div>
                        
                        <div class="act">
                            <input type="submit" value="新建" name="commit" id="partner-submit" class="formbutton"/>
                        </div>
                    }
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->